<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Public/wqq/css/common.css" rel="stylesheet" type="text/css" />
<link href="/Public/wqq/css/style.css" rel="stylesheet" type="text/css" />
<link href="/Public/wqq/fonts/iconfont.css" rel="stylesheet" type="text/css" />
<script src="/Public/wqq/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="/Public/wqq/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script src="/Public/wqq/js/common_js.js" type="text/javascript"></script>
<script src="/Public/wqq/js/footer.js" type="text/javascript"></script>
<script src="/Public/wqq/js/lrtk.js" type="text/javascript"></script>



<link href="/Public/wqq/css/my_order.css" type="text/css" rel="stylesheet"/>
<title>订单列表</title>
</head>
<body>
<!--顶部图层-->
<div id="header_top">
	<div id="top">
		<div class="Inside_pages">
			<div class="Collection">下午好，欢迎光临锦宏颜！<em></em><a href="#">收藏我们</a></div>
			<div class="hd_top_manu clearfix">
				<ul class="clearfix">
					<li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！
						<?php if(session('id') > 0): ?><a href="" class="red"><?php echo (session('username')); ?></a>　<a href="<?php echo ($user); ?>" class="red">[<i class="iconfont icon-yonghu"></i>个人中心]</a>
							<a href="<?php echo ($loginout); ?>" class="red">[退出]</a>
						<?php else: ?> 
							<a href="<?php echo ($login); ?>" class="red">[请登录]</a> 新用户<a href="<?php echo ($regist); ?>" class="red">[免费注册]</a><?php endif; ?>
					</li>
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="<?php echo ($orderlist); ?>">我的订单</a></li> 
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"> <a href="<?php echo ($cart); ?>"><i class="iconfont icon-cart2"></i>　购物车</a> </li>
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="#">联系我们</a></li>
					<li class="hd_menu_tit list_name" data-addclass="hd_menu_hover"><a href="#" class="hd_menu">客户服务</a>
						<div class="hd_menu_list">
							<ul>
								<li><a href="#">常见问题</a></li>
								<li><a href="#">在线退换货</a></li>
								<li><a href="#">在线投诉</a></li>
								<li><a href="#">配送范围</a></li>
							</ul>
						</div>	   
					</li>
					<li class="hd_menu_tit phone_c" data-addclass="hd_menu_hover"><a href="#" class="hd_menu "><em class="iconfont icon-shouji"></em>手机版</a>
						<div class="hd_menu_list erweima">
							<ul>
								<img src=""  width="100px" height="100"/>
							</ul>
						</div>	   
					</li>
				</ul>
			</div>
		</div>
	</div>
  <!--样式-->
<!--顶部样式2-->
	<div id="header "  class="header page_style">
		<div class="logo"><a href="index.html"><img src="/Public/wqq/images/logo.png" /></a></div>
		<!--结束图层-->
		<div class="Search">
			<p><input name="" type="text"  class="text"/><input name="" type="submit" value="搜 索"  class="Search_btn"/></p>
			<p class="Words"><a href="#">苹果</a><a href="#">香蕉</a><a href="#">菠萝</a><a href="#">西红柿</a><a href="#">橙子</a><a href="#">苹果</a></p>
		</div>
	 <!--购物车样式-->
		<div class="hd_Shopping_list" id="Shopping_list">
			<div class="s_cart">
				<em class="iconfont icon-cart2"></em><a href="#">我的购物车</a> <i class="ci-right">&gt;</i><i class="ci-count" id="shopping-amount">
				<?php if($num > 0): echo ($num); ?>
				<?php else: ?>
				0<?php endif; ?>
				</i>
			</div>
			<?php if($num > 0): ?><div class="dorpdown-layer">
				<div class="spacer"></div>
				<div class="prompt"></div>
				<!-- <div class="nogoods"><b></b>购物车中还没有商品，赶紧选购吧！</div> -->
				<ul class="p_s_list">
					<?php if(is_array($buycart)): foreach($buycart as $key=>$vo): ?><li>
							<input type="hidden" name="id" value="<?php echo ($vo["id"]); ?>">
							<div class="img" style="float: left;"><img src="/Public/upload/<?php echo ($vo['photos']); ?>"></div>
							<div class="content" style="float: left;"><p><a href="#"><?php echo ($vo['merchandise']); ?></a></p>
							<!-- <p>颜色分类:紫花8255尺码:XL</p> -->
							</div>
							<div class="Operations">
								<p class="Price">￥<?php echo ($vo['price']); ?></p>
								<p><a href="<?php echo ($delete); ?>?id=<?php echo ($vo["id"]); ?>">删除</a></p>
							</div>
						</li><?php endforeach; endif; ?>
				</ul>		
			<div class="Shopping_style">
				<div class="p-total">共<b><?php echo ($num); ?></b>件商品　共计<strong>￥ <?php echo ($sumtotal); ?></strong></div>
				<a href="#" title="去购物车结算" id="btn-payforgoods" class="Shopping">去购物车结算</a>
			</div>	 
			</div>
			<?php else: ?>
			<div class="dorpdown-layer">
				<div class="spacer"></div>
				<div class="prompt"></div>
			<div class="nogoods"><b></b>购物车中还没有商品，赶紧选购吧！</div>
			</div><?php endif; ?>
		</div>
	</div>
	<!--菜单导航样式-->
	<div id="Menu" class="clearfix">
		<div class="index_style clearfix">
			<div id="allSortOuterbox" class="display">
				<div class="t_menu_img"></div>
				<div class="Category"><a href="#"><em></em>所有产品分类</a></div>
				<div class="hd_allsort_out_box_new">
				<!--左侧栏目开始-->
					<ul class="Menu_list">	
						<?php if(is_array($list)): foreach($list as $key=>$vo): ?><li class="name"> 
								<div class="Menu_name"><a href="product.html?pid=<?php echo ($vo['id']); ?>" ><?php echo ($vo['category']); ?></a> <span>&lt;</span></div> 
								<div class="link_name">
									<p>
										<?php if(is_array($vo['child'])): foreach($vo['child'] as $key=>$voo): ?><a href="product.html?pid=<?php echo ($voo['id']); ?>"><?php echo ($voo['category']); ?></a><?php endforeach; endif; ?>
									</p>
								</div> 
								<div class="menv_Detail">
									<div class="cat_pannel clearfix">
										<div class="hd_sort_list">
											<?php if(is_array($vo['child'])): foreach($vo['child'] as $key=>$voo): ?><dl class="clearfix" data-tpc="1">
													<dt><a href="product.html?pid=<?php echo ($voo['id']); ?>"><?php echo ($voo['category']); ?><i>></i></a></dt>
													<dd>
														<?php if(is_array($voo['child'])): foreach($voo['child'] as $key=>$vooo): ?><a href="product.html?pid=<?php echo ($vooo['id']); ?>"><?php echo ($vooo['category']); ?></a><?php endforeach; endif; ?>
													</dd> 
												</dl><?php endforeach; endif; ?>
										</div>
										<div class="Brands">
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/34.jpg" /></a>
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/42.jpg" /></a>
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/152.jpg" /></a>
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/156.jpg" /></a>
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/458.jpg" /></a>
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/339.jpg" /></a>	
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/245.jpg" /></a>	
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/199.jpg" /></a>	
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/618.jpg" /></a>	
											<a href="#" class="logo_Brands"><img src="/Public/wqq/product/logo/644.jpg" /></a>
											<a href="#" class="AD_3"><img src="/Public/wqq/product/ad/2.jpg" /></a>	   
										</div>
									</div>
								<!--品牌-->		  
								</div>		 
							</li><?php endforeach; endif; ?>
					</ul>	
				</div>		
			</div>
			<script>$("#allSortOuterbox").slide({ titCell:".Menu_list li",mainCell:".menv_Detail",	});</script>
			<!--菜单栏-->
			<div class="Navigation" id="Navigation">
				<ul class="Navigation_name">
					<li><a href="index.html">首页</a></li>
					<?php if(is_array($list)): foreach($list as $key=>$vo): ?><li><a href="product.html?pid=<?php echo ($vo['id']); ?>"><?php echo ($vo['category']); ?></a></li><?php endforeach; endif; ?>
				</ul>			 
			</div>
			<script>$("#Navigation").slide({titCell:".Navigation_name li"});</script>		
	  	</div>
	</div>
</div>
<!--订单列表样式-->
<div class="user_style middle"> 
    <div class="user_center clearfix">
   <!--左侧菜单图层-->
    <div class="left_style">
    <div class="menu_style">
        <div class="user_title">用户中心</div>
        <div class="user_Head">
            <div class="user_portrait">
                <a href="#" title="修改头像" class="btn_link"></a> <img src="/Public/wqq/images/people.png">
                <div class="background_img"></div>
            </div>
            <div class="user_name">
                <p><span class="name"><?php echo (session('username')); ?></span><a href="#">[修改密码]</a></p>
                <p>访问时间：<?php echo date('Y-m-d H:i:s',time());?></p>
            </div>           
        </div>
    <!--菜单列表图层-->
        <dl class="accountSideOption1">
            <dt class="transaction_manage"><em class="icon_1"></em>会员中心</dt>
            <dd>
                <ul>
                    <li> <a href=""> 用户信息</a></li>
                    <li> <a href="<?php echo ($orderlist); ?>"> 我的订单</a></li>
                    <li> <a href="<?php echo ($address); ?>">收货地址</a></li>
                    <li> <a href="<?php echo ($shou); ?>"><i class="iconfont icon-shoucang"></i> 我的收藏</a></li>
                    <li><a href=""> 我的评论</a></li>
                </ul>
            </dd>
        </dl>
    </div>
</div>
   <!--右侧样式属性-->
        <div class="right_style fr">
            <div class="user_title_name"><span>订单列表</span></div>
             <div class="c_r_t">
                <ul>
                    <li><a href="<?php echo ($orderlist); ?>">所有订单</a></li>
                    <li><a href="<?php echo ($obligation); ?>">待付款</a><span><?php if($obligations > 0): echo ($obligations); else: endif; ?></span></li>
                    <li><a href="<?php echo ($shipments); ?>">待发货</a><span><?php if($shipment > 0): echo ($shipment); else: endif; ?></span></li>
                    <li class="current"><a href="<?php echo ($receiveds); ?>">待收货</a><span><?php if($received > 0): echo ($received); else: endif; ?></span></li>
                    <li><a href="#">待评价</a><span></span></li>
                </ul>
                <!-- <a href="#" class="laji">订单回收站</a> -->
                <div class="clear"></div>
            </div>
            <div class="c_r_m">
                <div class="search"><input type="text" placeholder="输入商品名称或订单号搜索"><input type="submit" value="搜索"></div>
                <div class="xiadan">
                    下单时间：
                    <select>
                        <option>近三个月</option>
                    </select>
                </div>
                <div class="status">
                    下单时间：
                    <select>
                        <option>近三个月</option>
                    </select>
                </div>
            </div>
            <div class="Order_form_list">
                <table>
                    <thead>
                        <tr>
                            <td class="list_name_title0">商品</td>
                            <td class="list_name_title1">单价(元)</td>
                            <td class="list_name_title2">数量</td>
                            <td class="list_name_title4">实付款(元)</td>
                            <td class="list_name_title5">订单状态</td>
                            <td class="list_name_title6">操作</td>
                        </tr>
                    </thead>
                    <?php if(is_array($order)): $i = 0; $__LIST__ = $order;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tbody>
                        <tr>
                            <td colspan="6" class="Order_form_time">订单号：<?php echo ($vo["id"]); ?> 下单时间：<?php echo ($vo["add_time"]); ?> </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <table class="Order_product_style">
                                    <tbody>
                                        <?php if(is_array($vo['product'])): $i = 0; $__LIST__ = $vo['product'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voo): $mod = ($i % 2 );++$i;?><tr>
                                                <td>
                                                    <div class="product_name clearfix">
                                                        <a href="#" class="product_img">
                                                            <img src="/Public/upload/<?php echo ($voo["photos"]); ?>" width="60px" height="60px"></a>
                                                        <a><?php echo ($voo["merchandise"]); ?></a>
                                                        <!-- <p class="specification">礼盒装20个/盒</p> -->
                                                    </div>
                                                </td>
                                                <td><?php echo ($voo["price"]); ?></td>
                                                <td><?php echo ($voo["number"]); ?></td>
                                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </tbody>
                                </table>
                            </td>   
                            <td class="split_line"><?php echo ($vo["total"]); ?></td>
                            <td class="split_line">
                            <?php if($vo["status"] == 1): ?>待付款
                            <?php elseif($vo["status"] == 2): ?>待发货
                            <?php elseif($vo["status"] == 3): ?>待收货<?php endif; ?>
                            </td>
                            <td class="operating">
                                <a href="#">查看详细</a>
                                <a href="#">删除</a>
                            </td>
                        </tr>
                    </tbody><?php endforeach; endif; else: echo "" ;endif; ?> 
                </table>
            </div>
        </div>
    </div>
</div>
<div class="slogen">
  <div class="index_style">
    <ul class="wrap">
	 <li>
	  <a href="#"><img src="/Public/wqq/images/slogen_34.png" data-bd-imgshare-binded="1"></a>
	  <b>安全保证</b>
	  <span>多重保障机制 认证商城</span>
	 </li>
	 <li><a href="#"><img src="/Public/wqq/images/slogen_28.png" data-bd-imgshare-binded="2"></a>
	  <b>正品保证</b>
	  <span>正品行货 放心选购</span>
	 </li>
	 <li>
	  <a href="#"><img src="/Public/wqq/images/slogen_30.png" data-bd-imgshare-binded="3"></a>
	  <b>七天无理由退换</b>
	  <span>七天无理由保障消费权益</span>
	 </li>
      <li>
	  <a href="#"><img src="/Public/wqq/images/slogen_31.png" data-bd-imgshare-binded="4"></a>
	  <b>天天低价</b>
	  <span>价格更低，质量更可靠</span>
	 </li>
	</ul>
  </div>
 </div>
<!--底部图层-->
<div class="phone_style">
 <div class="index_style">
   <span class="phone_number"><em class="iconfont icon-dianhua"></em>400-4565-345</span><span class="phone_title">客服热线 7X24小时 贴心服务</span>
 </div>
</div>
<div class="footerbox clearfix">
  <div class="clearfix">
   <div class="">
    <dl>
	 <dt>新手上路</dt>
	 <dd><a href="#">售后流程</a></dd>
     <dd><a href="#">购物流程</a></dd>
     <dd><a href="#">订购方式</a> </dd>
     <dd><a href="#">隐私声明 </a></dd>
     <dd><a href="#">推荐分享说明 </a></dd>
	</dl>
	<dl>
	 <dt>配送与支付</dt>
	 <dd><a href="#">保险需求测试</a></dd>
     <dd><a href="#">专题及活动</a></dd>
     <dd><a href="#">挑选保险产品</a> </dd>
     <dd><a href="#">常见问题 </a></dd>
	</dl>
	<dl>
	 <dt>售后保障</dt>
	 <dd><a href="#">保险需求测试</a></dd>
     <dd><a href="#">专题及活动</a></dd>
     <dd><a href="#">挑选保险产品</a> </dd>
     <dd><a href="#">常见问题 </a></dd>
	</dl>
	<dl>
	 <dt>支付方式</dt>
	 <dd><a href="#">保险需求测试</a></dd>
     <dd><a href="#">专题及活动</a></dd>
     <dd><a href="#">挑选保险产品</a> </dd>
     <dd><a href="#">常见问题 </a></dd>
	</dl>	
    <dl>
	 <dt>帮助中心</dt>
	 <dd><a href="#">保险需求测试</a></dd>
     <dd><a href="#">专题及活动</a></dd>
     <dd><a href="#">挑选保险产品</a> </dd>
     <dd><a href="#">常见问题 </a></dd>
	</dl>	   
   </div>
  </div>
 <div class="text_link">
   <p>
  <a href="#">关于我们</a>｜ <a href="#">公开信息披露</a>｜ <a href="#">加入我们</a>｜ <a href="#">联系我们</a>｜ <a href="#">版权声明</a>｜ <a href="#">隐私声明</a>｜ <a href="#">网站地图</a></p>
	 <p>蜀ICP备11017033号 Copyright ©2011 成都福际生物技术有限公司 All Rights Reserved. Technical support:CDDGG Group</p>
  </div>
  </div>
<div class="fixedBox">
  <ul class="fixedBoxList">
      <li class="fixeBoxLi user"><a href="#"> <span class="fixeBoxSpan iconfont icon-yonghu"></span> <strong>用户</strong></a> </li>
 <!--    <li class="fixeBoxLi cart_bd" style="display:block;" id="cartboxs">
		<p class="good_cart">0</p>
			<span class="fixeBoxSpan iconfont icon-cart"></span> <strong>购物车</strong>
			<div class="cartBox">
       		<div class="bjfff"></div>
       		<div class="message">购物车内暂无商品，赶紧选购吧</div>
       			<ul class="p_s_list">
					<?php if(is_array($cart)): foreach($cart as $key=>$vo): ?><li>
							<div class="img><img src="/Public/upload/<?php echo ($vo['photos']); ?>"></div>
							<div class="content"><p><a href="#"><?php echo ($vo['merchandise']); ?></a></p><p>颜色分类:紫花8255尺码:XL</p></div>
							<div class="Operations">
								<p class="Price">￥<?php echo ($vo['price']); ?></p>
								<p><a href="#">删除</a></p>
							</div>
						</li><?php endforeach; endif; ?>
				</ul>
       		</div>
    </li> -->
    <li class="fixeBoxLi Service "> <span class="fixeBoxSpan iconfont icon-service"></span> <strong>客服</strong>
      <div class="ServiceBox">
        <div class="bjfffs"></div>
        <dl onclick="javascript:;">
		    <dt><img src=""></dt>
		       <dd><strong>QQ客服1</strong>
		          <p class="p1">9:00-22:00</p>
		           <p class="p2"><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=123456&amp;site=DGG三端同步&amp;menu=yes">点击交谈</a></p>
		          </dd>
		        </dl>
				<dl onclick="javascript:;">
		          <dt><img src=""></dt>
		          <dd> <strong>QQ客服1</strong>
		            <p class="p1">9:00-22:00</p>
		            <p class="p2"><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=123456&amp;site=DGG三端同步&amp;menu=yes">点击交谈</a></p>
		          </dd>
		        </dl>
	          </div>
     </li>
	 <li class="fixeBoxLi code cart_bd " style="display:block;" id="cartboxs">
			<span class="fixeBoxSpan iconfont icon-erweima"></span> <strong>微信</strong>
			<div class="cartBox">
       		<div class="bjfff"></div>
			<div class="QR_code">
			 <p><img src="" width="150px" height="150px" style=" margin-top:10px;" /></p>
			 <p>微信扫一扫，关注我们</p>
			</div>		
			</div>
			</li>

    <li class="fixeBoxLi Home"> <a href="./"> <span class="fixeBoxSpan iconfont  icon-shoucang"></span> <strong>收藏</strong> </a> </li>
    <li class="fixeBoxLi Home"> <a href="./"> <span class="fixeBoxSpan iconfont  icon-zuji"></span> <strong>足迹</strong> </a> </li>
    <li class="fixeBoxLi Home"> <a href="./"> <span class="fixeBoxSpan iconfont  icon-fankui"></span> <strong>反馈</strong> </a> </li>
    <li class="fixeBoxLi BackToTop"> <span class="fixeBoxSpan iconfont icon-top"></span> <strong>返回顶部</strong> </li>
  </ul>
</div>
</body>
</html>